<jsp:useBean id="mediaTagManager" scope="application" class="org.languageguide.media.MediaTagManager" />
<html>
<head>
<%
	String id = request.getParameter("id");
	String targetLanguage = request.getParameter("target");	
	String language = request.getParameter("lang");	
	org.languageguide.media.Config configuration = mediaTagManager.getConfigFromCookie(request, response);
	String[] tags = mediaTagManager.getIR2(configuration, language + "/readings/" +  id);
 	out.print(tags[0]);
%>
<title>Interactive Reading</title>
<link href="/styles/control2.css" rel="stylesheet" type="text/css"/>
</head>
<body onLoad="set()"> 
<!--onkeypress="onkeypress(event)" -->
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
  <tr> 
    <td valign="top"><div align="center">
<!--<button id="rwd" onClick="rwd();" name="button" disabled type="button">&lt;&lt; Rwd </button> -->
<table width="600" border="0">
  <tr>
    <td width="180"><!-- <input type="checkbox" id="visibility" onChange="toggleVisibility()" value="off">
            <u>H</u>ide text    -->
            <a href="docs/instructions.html" target="_blank">Instructions</a></td>
    <td align="center">
        <input disabled="true" style="height: 42px; width:150px;" type="button" value="Pause ||" id="toggle" onClick="tog();" name="toggle">
    </td>
    <td width="180"><%= tags[1] %></td>
  </tr>
</table>

<!--<input  type='button' value='Fwd >>' id="fwd" onClick="fwd();"  name="button3" disabled> -->

</div></td> 
  </tr> 
  <tr> 
    <td height="100%" valign="top"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"> 
      <tr> 
        <td width="100%" height="100%" valign="top">
        <iframe id="reading" src="/readings/reading.jsp?id=<%=id %>&target=<%= targetLanguage %>" width="100%" frameborder="0" height="100%" scrolling="auto"></iframe></td> 
        </tr> 
    </table></td> 
  </tr> 
<!--  <tr> 
    <td valign="top"><p>Footer row in third row of of outer table</p>    </td> 
  </tr>  -->
</table> 
</body> </html>